<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<% 
String errorMessage = (String) request.getAttribute("errorMessage"); 
Boolean validUser = (Boolean) request.getAttribute("valid");
String currentUser = (String) request.getAttribute("userName");
%>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>TrackVoodoo Alpha 1</title>
<link href="style.css" rel="stylesheet" type="text/css">

</head>
<body>


<p class="Welcome">Welcome to trackVoodoo..</p>

<% if (currentUser != null) {%>
	<div>Welcome back <%= currentUser %></div>
<%} %>

<% if (errorMessage != null) {%>
	<div><%= errorMessage %></div>
<%} %>

<div class="indexSelection">
<p><a href="Index_SL?choice=profile&username=<%=currentUser%>">Profile</a><br>
  <a href="Index_SL?choice=trackdays&username=joeh">trackdays</a><br>
  <a href="Index_SL?choice=news">news</a><br>
  <a href="Index_SL?choice=forum">forum</a><br>
  <a href="Index_SL?choice=shop">shop</a></p>
  <a href="Index_SL?choice=cars">users cars</a></p>
  
</div>

<form action="Index_SL" method="post" name="loginBoxes">
		<label for="username">Username:</label>
		<input type="text" name="username" class="text" id="username">
		
		<label for="password">Password:</label>
		<input type="password" name="password" class="text" id="password">
		
		<input type="submit" value="Login" name="submit_button" class="submit">
		<input type="reset" value="Reset" class="submit">
</form>

<p>(c) message here</p>
</body>
</html>